﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace JWUX.Supermarket.Model
{
    /// <summary>
    /// 产线实例
    /// </summary>
    [DataContract]
    public class BayInfo
    {
        #region 属性

        [DataMember]
        public int Id
        {
            get;
            set;
        }

        [DataMember]
        public string Name
        {
            get;
            set;
        }

        public DateTime CreatedOn
        {
            get;
            set;
        }

        public int CreatedBy
        {
            get;
            set;
        }

        

        #endregion
    }

    public class BayEntity : BayInfo
    {
        #region 私有成员

        private List<LocationInfo> _locations;

        #endregion

        #region 属性

        public List<LocationInfo> Locations
        {
            set { _locations = value; }
            get
            {
                if (_locations == null)
                {
                    _locations = new List<LocationInfo>();
                }
                return _locations;
            }
        }

        #endregion
    }
}
